package com.doyens.entity;

import com.baomidou.mybatisplus.annotation.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "班级实体类")
@TableName("sch_class")
public class ClassRoom implements Serializable {

    @ApiModelProperty(value = "班级id")
    @TableId(type = IdType.AUTO,value = "class_id")
    private Integer classId;

    @ApiModelProperty(value = "教学周期id")
    private Integer teachingCycleId;

    @ApiModelProperty(value = "班主任id")
    private Integer classTeacherId;

    @ApiModelProperty(value = "讲师id")
    private Integer teacherId;

    @ApiModelProperty(value = "专业id")
    private Integer professionId;

    @ApiModelProperty(value = "班级名称")
    private String className;

    @ApiModelProperty(value = "班级学生数量")
    private Integer studentCount;

    @ApiModelProperty(value = "班级状态")
    private Integer status;


    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private LocalDateTime createTime;


    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充字段
    private LocalDateTime updateTime;



}
